package io.geekidea.springbootplus.system.service;

import io.geekidea.springbootplus.framework.common.service.BaseService;
import io.geekidea.springbootplus.framework.core.pagination.Paging;
import io.geekidea.springbootplus.system.entity.SysAddress;
import io.geekidea.springbootplus.system.param.SysAddressPageParam;
import io.geekidea.springbootplus.system.param.sysmember.SysMemberPageParam;
import io.geekidea.springbootplus.system.vo.SysAddressQueryVo;
import io.geekidea.springbootplus.system.vo.SysMemberQueryVo;

import java.util.List;

public interface   SysAddressService extends BaseService<SysAddress> {

    Paging<SysAddressQueryVo> getSysAddressPageList(SysAddressPageParam sysAddressPageParam) throws Exception;

    boolean addAddress(SysAddress sysAddress) throws Exception;

    boolean deleteAddress(Integer id) throws Exception;

    boolean updateAddress(SysAddress sysAddress) throws Exception;

    boolean deleteAddressBatchIds(List<Integer> idList) throws Exception;

    SysAddressQueryVo selectAddressById(Integer id) throws Exception;

    List<SysAddressQueryVo> getAddressListByMemberId(Integer memberId) throws Exception;

    boolean updateDefaultAddress (Integer memberId,Integer id) throws Exception;
}

